#ifndef __APP_POOL_H__
#define __APP_POOL_H__

#include <pthread.h>
#include <mqueue.h>
#include <stdio.h>


typedef  void*(*func)(void*);

typedef struct 
{
    func task_func;
    void* args;
}Task_handle;

/*初始化线程池*/
int App_pool_Init(void);

/*向线程池提交任务*/
int App_pool_Submit_Task(func taskfunc,void* args);

/*摧毁线程池*/
void App_pool_destroy(void);
#endif /* __APP_POOL_H__ */